package com.mycompany.virtualApp.dao;

import com.mycompany.virtualApp.entity.ClickDetails;
import com.mycompany.virtualApp.entity.TopEntity;
import com.mycompany.virtualApp.mapper.ClickMapper;
import com.mycompany.virtualApp.mapper.TopMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Repository("clickDao")
public class ClickDaoImpl implements ClickDao {

    @Autowired
    private ClickMapper clickMapper;

    @Override
    public List<ClickDetails> selectByParam(Map<String, Object> map) {
        return clickMapper.selectByParam(map);
    }

    @Override
    public int insert(ClickDetails clickDetails) {
        return clickMapper.insert(clickDetails);
    }
}
